-- GENERATED SPELL FOR [Razorfen Groundshaker] --


function spell0_4523(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(8046,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4523', 2000, 1)
end

function spell1_4523(pUnit, Event) --@Ground Tremor,Self--
pUnit:FullCastSpellOnTarget(6524,pUnit)
pUnit:RegisterEvent('Sorts_4523', 2000, 1)
end

function Sorts_4523(pUnit, Event)
local choix_sorts_4523 = math.random(0, 1)
if choix_sorts_4523 == 0 then
pUnit:RegisterEvent('spell0_4523', 1, 1)
end
if choix_sorts_4523 == 1 then
pUnit:RegisterEvent('spell1_4523', 1, 1)
end
end

function mob4523_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4523', math.random(1500, 3000), 1)
end

function mob4523_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4523_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4523_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4523, 1, 'mob4523_Action')
RegisterUnitEvent(4523, 2, 'mob4523_Leave')
RegisterUnitEvent(4523, 3, 'mob4523_Kill')
RegisterUnitEvent(4523, 4, 'mob4523_Die')
